package com.wyk.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WangYuKai
 * @Date 2022/7/14
 * @apiNote
 */
@RestController
public class ConfigClientController {
    //获取访问端口
    @Value("${server.port}")
    private String serverport;

    //获取访问内容
    @Value("${config.info}")
    private String configInfo;

    //获取访问路径
    @GetMapping("/configInfo")
    public String getConfigInfo(){
        return "serverPost:" + serverport + "\t" + "configInfo" + configInfo;
    }

}
